<?php
/**
 * Created by PhpStorm.
 * User: XYX
 * Date: 2017/9/5
 * Time: 10:56
 */

namespace App\Api\Transformers;


use App\Mentor;
use League\Fractal\TransformerAbstract;

class MentorforClubTransformer extends TransformerAbstract
{
    public function transform(Mentor $item){
        return
            [
                'mentor_id'=>$item['id'],
                'name'=>$item['name'],
                'avatar'=>$item['image'],
                'intro'=>$item['intro']
            ];
    }
}